<html>
<head>
    <meta charset="utf-8"/>
<meta name="description" content=""/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>

<title>常用注册表自定义功能 | 絷缘的博客</title>

<link rel="shortcut icon" href="https://zydnc.gitee.io/favicon.ico?v=1732378515642">

<link href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://zydnc.gitee.io/styles/main.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.0/dist/css/bootstrap.min.css">

<script src="https://cdn.jsdelivr.net/npm/@highlightjs/cdn-assets/highlight.min.js"></script>
<script src="https://cdn.bootcss.com/highlight.js/9.15.10/languages/dockerfile.min.js"></script>
<script src="https://cdn.bootcss.com/highlight.js/9.15.10/languages/dart.min.js"></script>

<script src="https://cdn.jsdelivr.net/npm/moment@2.27.0/moment.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.0/dist/js/bootstrap.min.js"></script>
<!-- DEMO JS -->
<!--<script src="media/scripts/index.js"></script>-->



    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.css">
 <script src='//unpkg.com/valine/dist/Valine.min.js'></script>
</head>
<body>
<div class="main gt-bg-theme-color-first">
    <nav class="navbar navbar-expand-lg">
    <div class="navbar-brand">
        <img class="user-avatar" src="/images/avatar.png" alt="头像">
        <div class="site-name gt-c-content-color-first">
            絷缘的博客
        </div>
    </div>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
        <i class="fas fa-bars gt-c-content-color-first" style="font-size: 18px"></i>
    </button>
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
        <div class="navbar-nav mr-auto" style="text-align: center">
            
                <div class="nav-item">
                    
                        <a href="/" class="menu gt-a-link">
                            首页
                        </a>
                    
                </div>
            
                <div class="nav-item">
                    
                        <a href="/archives" class="menu gt-a-link">
                            归档
                        </a>
                    
                </div>
            
                <div class="nav-item">
                    
                        <a href="/tags" class="menu gt-a-link">
                            标签
                        </a>
                    
                </div>
            
                <div class="nav-item">
                    
                        <a href="/about" class="menu gt-a-link">
                            关于
                        </a>
                    
                </div>
            
                <div class="nav-item">
                    
                        <a href="/friends" class="menu gt-a-link">
                            友链
                        </a>
                    
                </div>
            
        </div>
        <div style="text-align: center">
            <form id="gridea-search-form" style="position: relative" data-update="1732378515642" action="/search/index.html">
                <input class="search-input" autocomplete="off" spellcheck="false" name="q" placeholder="搜索文章" />
                <i class="fas fa-search gt-c-content-color-first" style="position: absolute; top: 9px; left: 10px;"></i>
            </form>
        </div>
    </div>
</nav>

    <div class="post-container">
        <div class="post-detail gt-bg-theme-color-second">
            <article class="gt-post-content">
                <h2 class="post-title">
                    常用注册表自定义功能
                </h2>
                <div class="post-info">
                    <time class="post-time gt-c-content-color-first">
                        · 2021-01-12 ·
                    </time>
                    
                        <a href="https://zydnc.gitee.io/gKHkL-knM/" class="post-tags">
                            # 小技巧
                        </a>
                    
                        <a href="https://zydnc.gitee.io/XolcFMCqP/" class="post-tags">
                            # 注册表
                        </a>
                    
                </div>
                <div class="post-content">
                    <h2 id="一-右键创建文本文件">一、右键创建文本文件</h2>
<pre><code class="language-shell">Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.txt]

@=&quot;txtfile&quot;

&quot;Content Type&quot;=&quot;text/plain&quot;

[HKEY_CLASSES_ROOT\.txt\ShellNew]

&quot;NullFile&quot;=&quot;&quot; [HKEY_CLASSES_ROOT\txtfile]

@=&quot;文本文档&quot;

[HKEY_CLASSES_ROOT\txtfile\shell]

[HKEY_CLASSES_ROOT\txtfile\shell\open]

[HKEY_CLASSES_ROOT\txtfile\shell\open\command]

@=&quot;NOTEPAD.EXE %1&quot;
</code></pre>
<h2 id="二-右键记事本打开">二、右键记事本打开</h2>
<pre><code class="language-shell">Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\notepad]

@=&quot;用记事本打开 &quot;

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\notepad\command]

@=&quot;notepad %1&quot;
</code></pre>
<h2 id="三-右键查看文件hash值">三、右键查看文件Hash值</h2>
<pre><code class="language-shell">Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\hash]
&quot;MUIVerb&quot;=&quot;Hash&quot;
&quot;SubCommands&quot;=&quot;&quot;


; SHA1
[HKEY_CLASSES_ROOT\*\shell\hash\shell\01menu]
&quot;MUIVerb&quot;=&quot;SHA1&quot;

[HKEY_CLASSES_ROOT\*\shell\hash\shell\01menu\command]
@=&quot;powershell -noexit get-filehash -literalpath '%1' -algorithm SHA1 | format-list&quot;


; SHA256
[HKEY_CLASSES_ROOT\*\shell\hash\shell\02menu]
&quot;MUIVerb&quot;=&quot;SHA256&quot;

[HKEY_CLASSES_ROOT\*\shell\hash\shell\02menu\command]
@=&quot;powershell -noexit get-filehash -literalpath '%1' -algorithm SHA256 | format-list&quot;


; SHA384
[HKEY_CLASSES_ROOT\*\shell\hash\shell\03menu]
&quot;MUIVerb&quot;=&quot;SHA384&quot;

[HKEY_CLASSES_ROOT\*\shell\hash\shell\03menu\command]
@=&quot;powershell -noexit get-filehash -literalpath '%1' -algorithm SHA384 | format-list&quot;


; SHA512
[HKEY_CLASSES_ROOT\*\shell\hash\shell\04menu]
&quot;MUIVerb&quot;=&quot;SHA512&quot;

[HKEY_CLASSES_ROOT\*\shell\hash\shell\04menu\command]
@=&quot;powershell -noexit get-filehash -literalpath '%1' -algorithm SHA512 | format-list&quot;


; MACTripleDES
[HKEY_CLASSES_ROOT\*\shell\hash\shell\05menu]
&quot;MUIVerb&quot;=&quot;MACTripleDES&quot;

[HKEY_CLASSES_ROOT\*\shell\hash\shell\05menu\command]
@=&quot;powershell -noexit get-filehash -literalpath '%1' -algorithm MACTripleDES | format-list&quot;


; MD5
[HKEY_CLASSES_ROOT\*\shell\hash\shell\06menu]
&quot;MUIVerb&quot;=&quot;MD5&quot;

[HKEY_CLASSES_ROOT\*\shell\hash\shell\06menu\command]
@=&quot;powershell -noexit get-filehash -literalpath '%1' -algorithm MD5 | format-list&quot;


; RIPEMD160
[HKEY_CLASSES_ROOT\*\shell\hash\shell\07menu]
&quot;MUIVerb&quot;=&quot;RIPEMD160&quot;

[HKEY_CLASSES_ROOT\*\shell\hash\shell\07menu\command]
@=&quot;powershell -noexit get-filehash -literalpath '%1' -algorithm RIPEMD160 | format-list&quot;


; Allget-filehash -literalpath '%1' -algorithm RIPEMD160 | format-list
[HKEY_CLASSES_ROOT\*\shell\hash\shell\08menu]
&quot;CommandFlags&quot;=dword:00000020
&quot;MUIVerb&quot;=&quot;显示全部&quot;

[HKEY_CLASSES_ROOT\*\shell\hash\shell\08menu\command]
@=&quot;powershell -noexit get-filehash -literalpath '%1' -algorithm SHA1 | format-list;get-filehash -literalpath '%1' -algorithm SHA256 | format-list;get-filehash -literalpath '%1' -algorithm SHA384 | format-list;get-filehash -literalpath '%1' -algorithm SHA512 | format-list;get-filehash -literalpath '%1' -algorithm MACTripleDES | format-list;get-filehash -literalpath '%1' -algorithm MD5 | format-list;get-filehash -literalpath '%1' -algorithm RIPEMD160 | format-list&quot;
</code></pre>
<blockquote>
<p>原文作者：絷缘<br>
作者邮箱：zhiyuanworkemail@163.com<br>
原文地址：<a href="https://zhiyuandnc.github.io/hab_ZN2hO/">https://zhiyuandnc.github.io/hab_ZN2hO/</a><br>
版权声明：本文为博主原创文章，转载请注明原文链接作者信息</p>
</blockquote>

                </div>
            </article>
        </div>

        
            <div class="next-post">
                <div class="next gt-c-content-color-first">下一篇</div>
                <a href="https://zydnc.gitee.io/SHhX20vPx/" class="post-title gt-a-link">
                    自定义注解简单模拟Junit实现测试
                </a>
            </div>
        

        

        

        

        <div class="site-footer gt-c-content-color-first">
    <div class="slogan gt-c-content-color-first">事实不以人的意志为转移</div>
    <div class="social-container">
        
            
                <a href="#" target="_blank">
                    <i class="fab fa-github gt-c-content-color-first"></i>
                </a>
            
        
            
                <a href="#" target="_blank">
                    <i class="fab fa-telegram gt-c-content-color-first"></i>
                </a>
            
        
            
                <a href="#" target="_blank">
                    <i class="fab fa-qq gt-c-content-color-first"></i>
                </a>
            
        
            
                <a href="#" target="_blank">
                    <i class="fab fa-bilibili gt-c-content-color-first"></i>
                </a>
            
        
            
        
            
        
            
        
            
        
            
        
            
        
            
        
            
        
            
        
    </div>
    <div class="footer-info">
        Copyright&ensp;&copy;&ensp;絷缘的博客<br/><a href="https://beian.miit.gov.cn/" target="_blank">晋ICP备20001723号-1</a>
    </div>
    <div>
        Theme by <a href="https://imhanjie.com/" target="_blank">imhanjie</a>, Powered by <a
                href="https://github.com/getgridea/gridea" target="_blank">Gridea | <a href="https://zydnc.gitee.io/atom.xml" target="_blank">RSS</a></a>
    </div>
</div>

<script>
  hljs.initHighlightingOnLoad()
</script>

    </div>
</div>
</body>
</html>
